﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="JChuJiaGongWuListUpdateCurrFlow.aspx.cs" Inherits="IHISCETeim.Web.MachineSys.JSDWF.JChuJiaGongWuListUpdateCurrFlow" %>
<div class="pageContent">
	<form method="post" action="JSDWF/JChuJiaGongWuListUpdateCurrFlow.aspx?ajaxmethod=add&ChuJGWId=<%=ChuJGWId %>" class="pageForm required-validate" onsubmit="return validateCallback(this, navTabAjaxDone);">
		<div class="pageFormContent" layoutH="56">
                <p>
				    <label>供应商：</label>
				    <input name="" readonly type="text" class=""  value="<%=obj.SupplerName %>" />
			    </p>
            
                <p>
				    <label>机 型：</label>
				    <input name="" type="text" readonly class=""  value="<%=obj.MacType %>" />
			    </p>
            <div class="divider"></div>
                <p>
				    <label>管制理由：</label>
                     <input name="" type="text" readonly class=""  value="<%=obj.ControlReasonType %>" />
				    
			    </p>
                <p>
                     <input name="" type="text" readonly class=""  value="<%=obj.ControlReasonSoure %>" />
			    </p>
              <h2 style="clear:both; padding:5px; border-bottom:1px solid #B8D0D6; margin-bottom:5px; margin-top:15px; line-height:26px;">
                管制零件
            </h2>
              <table class="list" width="600px">
                    <thead>
                    <tr>
                        <th>零件号码</th>
                        <th>零件名称</th>
                        <th>数量</th>
                        <th>变更内容及注意事项</th>
                    </tr>
                    </thead>
                    <tbody>
                    <asp:repeater id="rplistDetail" runat="server">               
                        <ItemTemplate>
                            <tr>
                                <td><input type="text" name="ItemCode" readonly class="inputGetFormLimtt" value="<%# Eval("ItemCode") %>"/></td>
                                <td><input type="text" name="ItemName" readonly class="inputGetFormLimtt" value="<%# Eval("ItemName") %>"/></td>
                                <td><input type="text" name="Quantity" readonly class="inputFloat" value="<%# Eval("Quantity") %>"/></td>
                                <td><input type="text" name="Note" readonly class="inputGetFormLimtt"value="<%# Eval("Note") %>"/></td>
                            </tr>
                        </ItemTemplate>                   
                    </asp:repeater>                    
                    </tbody>
              </table>
              <h2 style="clear:both; padding:5px; border-bottom:1px solid #B8D0D6; margin-bottom:5px; margin-top:15px; line-height:26px;">
                承办人
            </h2>
               <table class="list" id="JChuJiaGongWuListUpdateCurrFlowTB">
                    <thead>
                    <tr >
                       
                        <th width="80px">部门</th>
                        <th width="60px">承办人</th>
                        <th width="60px">承办日期</th>
                        <th width="120px">承办意见</th>
                        <th width="60px">结果判定</th>                      
                    </tr>
                    </thead>
                    <tbody>                    
                    <asp:repeater id="rpFlowTemp" runat="server">               
                        <ItemTemplate>
                            <tr id="JChuJiaGongWuListUpdateCurrFlow_TR<%# Eval("ChuFlowID") %>">                                
                                <td><%# Eval("DeptTitle") %></td>
                                <td>
                                     <input type="hidden" name="IsSend"  value="<%# Eval("IsSend") %>"/>
                                   <input type="hidden" name="ChuFlowID"  value="<%# Eval("ChuFlowID") %>"/>
                                    <input type="hidden" name="UserId"  value="<%# Eval("UserId") %>"/>
                                    <input type="text" name="RealName" value="<%# Eval("RealName") %>"/>
                                </td>
                                <td><input type="text" name="CBDate" value="<%# Eval("CBDate") %>" /></td>
                                <td>
                                    <textarea name="CBNote" rows="5" cols="25" class="inputGetFormLimtt"><%# Eval("CBNote") %></textarea>
                                </td>
                                <td><select name="CBResult"><option value="OK" <%# Eval("CBResult").ToString()=="OK"?"Selected":"" %>>OK</option><option value="NG" <%# Eval("CBResult").ToString()=="NG"?"Selected":"" %>>NG</option></select></td>
                               
                            </tr>
                        </ItemTemplate>                   
                    </asp:repeater>
                    </tbody>
              </table>
               <h2 style="clear:both; padding:5px; border-bottom:1px solid #B8D0D6; margin-bottom:5px; margin-top:15px; line-height:26px;">
                管制机号
            </h2>
              <table class="list" width="600px">
                    <thead>
                    <tr>
                        <th>计划装配机号</th>
                        <th>实际装配机号</th>
                        <th>备注</th>
                       
                    </tr>
                    </thead>
                    <tbody>
                    <asp:repeater id="rplistSerial" runat="server">               
                        <ItemTemplate>
                            <tr>                       
                                <td><input type="text" name="JHSerialNumber"  class="inputGetFormLimtt" value="<%# Eval("JHSerialNumber") %>"/></td>
                                <td><input type="text" name="SJSerialNumber"  class="inputGetFormLimtt" value="<%# Eval("SJSerialNumber") %>"/></td>
                                <td><input type="text" name="SerialNote"   class="inputGetFormLimtt" value="<%# Eval("Note") %>"/></td>                        
                            </tr>     
                        </ItemTemplate>              
                    </asp:repeater>                    
                    </tbody>
              </table>
              <div class="divider"></div>           
        </div>        
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit" > 提 交 </button></div></div></li>
				<li>
					<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
				</li>
			</ul>
		</div>
	</form>
</div>
<script>
    $(document).ready(function () {
        $("#JChuJiaGongWuListUpdateCurrFlowTB").find("input[name='UserId']").each(function () {
            if( $(this).val()!=<%=User.UserId%>)
            {
                $(this).closest("tr").find("input").attr("readonly","readonly");
                $(this).closest("tr").find("input").removeAttr("name");

                $(this).closest("tr").find("textarea").attr("readonly","readonly");
                $(this).closest("tr").find("textarea").removeAttr("name");

                $(this).closest("tr").find("select").attr("readonly","readonly");
                $(this).closest("tr").find("select").removeAttr("name");
            }
        })
    })
   
</script>